package com.woniu.defecttracking.service;

import com.woniu.defecttracking.entity.RoleRule;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.defecttracking.exception.RoleException;
import com.woniu.defecttracking.exception.RuleException;
import com.woniu.defecttracking.param.AddRoleRuleParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tiangle
 * @since 2021-12-31
 */
public interface RoleRuleService extends IService<RoleRule> {

    Boolean saveRoleRule(AddRoleRuleParam addRoleRuleParam) throws RoleException, RuleException;

    List<Integer> findRuleIds(Integer id) throws RoleException;
}
